package com.bluno;

import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.WindowManager;

import com.bluno.view.obj.SceneObj;

public class Util {
	
	public static int SCREEN_WIDTH = 480;
	public static int SCREEN_HEIGHT = 320;
	public static int SCREEN_MIDDLE_X = 320/2;
	public static int SCREEN_MIDDLE_Y = 320/2;
	public static void init(Context context)
	{
		WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
		Display display = wm.getDefaultDisplay();
		Point size = new Point();
		
		SCREEN_WIDTH = display.getWidth();
		SCREEN_HEIGHT = display.getHeight();
		SCREEN_MIDDLE_X = display.getWidth()/2;
		SCREEN_MIDDLE_Y = display.getHeight()/2;
	}
}
